<?php
    include('checkAdminAccess.php');
    $iniVars = parse_ini_file('../../config.ini',TRUE);
    include('../classes/adodb5/adodb.inc.php');
    include('../function/db.func.php');
    
    $sql = 'UPDATE text_data SET td_value="'.$_POST['facebook'].'" WHERE td_id=28';
    $result = $db->Execute($sql);
    $sql = 'UPDATE text_data SET td_value="'.$_POST['twitter'].'" WHERE td_id=29';
    $result = $db->Execute($sql);
    if($result)
    {
        echo 'success';
    }
    else
    {
        echo 'fail';
    }
?>